package manager.cms.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import manager.cms.service.CmsContentService;
import manager.cms.vo.CmsContentCatVO;
import manager.cms.vo.CmsContentVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping(value = {"/customer/manager"})
@Api(value = "品牌管理模块")
public class CmsContentCustomerController {
     @Autowired
     private CmsContentService cmsContentService;
    /**
     * 不分页查询分类信息
     */
    @RequestMapping(value = "/cms/category/content/list", method = RequestMethod.POST)
    @ApiOperation(notes = "查询首页cms分类信息", value = "get categories info")
    public List<CmsContentCatVO> getCmsContentCat(@RequestBody CmsContentCatVO cmsContentCatVO){
         return cmsContentService.getCmsContentCat(cmsContentCatVO);
    }
    /**
     * 不分页查询内容
     */
    @RequestMapping(value = "/cms/content/list", method = RequestMethod.POST)
    @ApiOperation(notes = "查询首页cms分类信息", value = "get categories info")
    public List<CmsContentVO> getCmsContent(@RequestBody CmsContentVO cmsContentVO){
         return cmsContentService.getCmsContent(cmsContentVO);
    }
}
